package org.jeecg.modules.sggg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.sggg.entity.SgBlutdruckRecord;
import org.jeecg.modules.sggg.entity.SgLipidRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.sggg.entity.SgMember;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: 血脂记录表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
public interface ISgLipidRecordService extends IService<SgLipidRecord> {

    IPage<SgMember> queryPageListBySqlxz(Page<SgMember> page, String sysOrgCode,List<String> responsibleAgencies, Integer day, String roleCode, String userId,String name, String phone,boolean Bindstatus,int deviceType);

    IPage<SgLipidRecord> queryList(Page<SgLipidRecord> page, String OrgCode,
                                   SgLipidRecord sgLipidRecord,String roleCode, String userId);

    /*大屏--高危干预预警*/
    List<Map<String, Object>> interventionWarning(String orgCode);

    /*大屏--三高管理人数*/
    List<Map<String, Object>> threeHighNumber(String orgCode);

    IPage<SgLipidRecord> queryListByDoctor(Page<SgLipidRecord> page, String name, String phone,List<String> responsibleAgencies, String sysOrgCode, String roleCode, String doctorId, String intervene);

    /*今日血压测量人数*/
    List<SgLipidRecord> dayMeasureNumberCount(String sysOrgCode, String roleCode, String date, String doctorId, String intervene,List<String> responsibleAgencies);

    List<SgLipidRecord> dayMeasureNumberCountTwo(String sysOrgCode, String roleCode, String date, String doctorId, String intervene,List<String> responsibleAgencies);

    List<Map<String, Integer>> getEachLevelNum(String orgCode);
}
